<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>正则表达式</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<link href="" rel="stylesheet">
	<script>
		window.onload=function () {
			var str = "djsalkdjasd";
			var after = str.search('s');  //返回字符串具体的位置
			console.log(after);
			var after2 = str.substring(2,5);//反正字符串区间  不包括起始位置
			console.log(after2);
			var after3 = str.charAt(4);
			console.log(after3);
			var after4 = str.split('');
			console.log(after4);
		}
	</script>
</head>
<body>
	<ul>
		<li><a href="index.html">index.html</a></li>
		<li><a href="index2.html">index2.html</a></li>
		<li><a href="index3.html">index3.html</a></li>
		<li><a href="index4.html">index4.html</a></li>
		<li><a href="index5.html">index5.html</a></li>
		<li><a href="index6.html">index6.html</a></li>
		<li><a href="index7.html">index7.html</a></li>
		<li><a href="index8.html">index8.html</a></li>
	</ul>
</body>
</html>